package com.clear.honghefinance.biz.modules.system.member.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 获取图形验证码DTO
 */
@Getter
@Setter
public class GetBase64CodeDTO implements Serializable {

    /**
     * 客户端id
     */
    @ApiModelProperty("客户端id")
    @NotBlank(message = "clientId不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,32}$", message = "clientId非法")
    private String clientId;
}
